#include <time.h>
#include <stdbool.h>

#include "Global.h"
#include "Output.h"
#include "Users.h"

#ifndef __SESSION_H
#define __SESSION_H

typedef struct Session
{
	struct tm *began;
	encoding_t sessionEncoding;
	char requestedWidth;
	char requestedHeight;
	bool mainMenuShown;
	char lastSubboard;
	unsigned int lastThreadNumber;
	unsigned int lastMessageNumber;
	bool pagedSysop;
} session_t;

typedef struct CallHistory
{
	unsigned numberOfCallers;
	time_t lastLogoffDateTime;
	session_t lastSession;
	user_t lastUsers[10];
} callHistory_t;

extern session_t _currentSession;

void newSession(void);

#endif